<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateBoxUserTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('box_user', function (Blueprint $table) {
            $table->increments('id');
            $table->string('account')->nullable()->comment('账号');
            $table->string('username')->nullable()->comment('用户名');
            $table->string('avatar')->nullable()->comment('头像');
            $table->char('class')->nullable()->comment('班级1小班2中班3大班');
            $table->integer('integral')->nullable()->comment('积分');
            $table->decimal('balance')->nullable()->comment('金额');
            $table->date('createtime')->nullable()->comment('创建时间');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('box_user');
    }
}
